From cfc6cab903b7fecb931b373b35012a259665973b Mon Sep 17 00:00:00 2001 From: Jacob Shin Date: Thu, 12 May 2011 09:14:06 +0100 Subject: [PATCH] hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors HVM VPMU support can be enabled for AMD Family 12h and 14h processors by taking the same code path as 10h. Signed-off-by: Jacob Shin --- xen/arch/x86/hvm/svm/vpmu.c | 2 ++ xen/arch/x86/hvm/vpmu.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/arch/x86/hvm/svm/vpmu.c b/xen/arch/x86/hvm/svm/vpmu.c index 2d320b182f..a755c4a0f2 100644 --- a/xen/arch/x86/hvm/svm/vpmu.c +++ b/xen/arch/x86/hvm/svm/vpmu.c @@ -317,6 +317,8 @@ static void amd_vpmu_initialise(struct vcpu *v) k7_counters_mirrored = 1; break; case 0x10: + case 0x12: + case 0x14: default: num_counters = F10H_NUM_COUNTERS; counters = AMD_F10H_COUNTERS; diff --git a/xen/arch/x86/hvm/vpmu.c b/xen/arch/x86/hvm/vpmu.c index 7e03525b2f..9422da92c9 100644 --- a/xen/arch/x86/hvm/vpmu.c +++ b/xen/arch/x86/hvm/vpmu.c @@ -101,6 +101,8 @@ void vpmu_initialise(struct vcpu *v) switch ( family ) { case 0x10: + case 0x12: + case 0x14: case 0x15: vpmu->arch_vpmu_ops = &amd_vpmu_ops; break; -- 2.30.2